package com.netflexitysolutions.amazonws.ec2.internal.operations;

import com.amazonaws.ec2.doc._2009_04_04.AllocateAddressType;
import com.netflexitysolutions.amazonws.ec2.EC2;

public class AllocateAddressOperation extends OperationExecutor<AllocateAddressType, String> {

	public AllocateAddressOperation(EC2 ec2) {
		super(ec2);
	}

	@Override
	protected String call(AllocateAddressType request) {
		return getEC2().getService().allocateAddress(request).getPublicIp();
	}

}
